<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<title>FTP (Commons Net 3.3 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="FTP (Commons Net 3.3 API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/FTP.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/net/ftp/FTP.html" target="_top">Frames</a></li>
<li><a href="FTP.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.commons.net.ftp</div>
<h2 title="Class FTP" class="title">Class FTP</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">org.apache.commons.net.SocketClient</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.net.ftp.FTP</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp">FTPClient</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.97">FTP</a>
extends <a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></pre>
<div class="block">FTP provides the basic the functionality necessary to implement your
 own FTP client.  It extends org.apache.commons.net.SocketClient since
 extending TelnetClient was causing unwanted behavior (like connections
 that did not time out properly).
 <p>
 To derive the full benefits of the FTP class requires some knowledge
 of the FTP protocol defined in RFC 959.  However, there is no reason
 why you should have to use the FTP class.  The
 <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a> class,
 derived from FTP,
 implements all the functionality required of an FTP client.  The
 FTP class is made public to provide access to various FTP constants
 and to make it easier for adventurous programmers (or those with
 special needs) to interact with the FTP protocol and implement their
 own clients.  A set of methods with names corresponding to the FTP
 command names are provided to facilitate this interaction.
 <p>
 You should keep in mind that the FTP server may choose to prematurely
 close a connection if the client has been idle for longer than a
 given time period (usually 900 seconds).  The FTP class will detect a
 premature FTP server connection closing when it receives a
 <a href="../../../../../org/apache/commons/net/ftp/FTPReply.html#SERVICE_NOT_AVAILABLE"><code>FTPReply.SERVICE_NOT_AVAILABLE </code></a>
  response to a command.
 When that occurs, the FTP class method encountering that reply will throw
 an <a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>
 .  <code>FTPConectionClosedException</code>
 is a subclass of <code> IOException </code> and therefore need not be
 caught separately, but if you are going to catch it separately, its
 catch block must appear before the more general <code> IOException </code>
 catch block.  When you encounter an
 <a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>
 , you must disconnect the connection with
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#disconnect()"><code>disconnect() </code></a> to properly clean up the
 system resources used by FTP.  Before disconnecting, you may check the
 last reply code and text with
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()"><code>getReplyCode </code></a>,
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a>,
 and <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings</code></a>.
 You may avoid server disconnections while the client is idle by
 periodicaly sending NOOP commands to the server.
 <p>
 Rather than list it separately for each method, we mention here that
 every method communicating with the server and throwing an IOException
 can also throw a
 <a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net"><code>MalformedServerReplyException</code></a>
 , which is a subclass
 of IOException.  A MalformedServerReplyException will be thrown when
 the reply received from the server deviates enough from the protocol
 specification that it cannot be interpreted in a useful manner despite
 attempts to be as lenient as possible.
 <p>
 <p></div>
<dl><dt><span class="strong">Version:</span></dt>
  <dd>$Id: FTP.java 1448087 2013-02-20 11:20:07Z sebb $</dd>
<dt><span class="strong">Author:</span></dt>
  <dd>Rory Winston, Joseph Hindsley</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>, 
<a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp"><code>FTPConnectionClosedException</code></a>, 
<a href="../../../../../org/apache/commons/net/MalformedServerReplyException.html" title="class in org.apache.commons.net"><code>MalformedServerReplyException</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/commons/net/ProtocolCommandSupport.html" title="class in org.apache.commons.net">ProtocolCommandSupport</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_commandSupport_">_commandSupport_</a></strong></code>
<div class="block">A ProtocolCommandSupport object used to manage the registering of
 ProtocolCommandListeners and te firing of ProtocolCommandEvents.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlEncoding">_controlEncoding</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_">_controlInput_</a></strong></code>
<div class="block">Wraps SocketClient._input_ to facilitate the reading of text
 from the FTP control connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/BufferedWriter.html?is-external=true" title="class or interface in java.io">BufferedWriter</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_">_controlOutput_</a></strong></code>
<div class="block">Wraps SocketClient._output_ to facilitate the writing of text
 to the FTP control connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_newReplyString">_newReplyString</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyCode">_replyCode</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyLines">_replyLines</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_replyString">_replyString</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#ASCII_FILE_TYPE">ASCII_FILE_TYPE</a></strong></code>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as ASCII.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#BINARY_FILE_TYPE">BINARY_FILE_TYPE</a></strong></code>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as a binary image, i.e., no translations should be
 performed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#BLOCK_TRANSFER_MODE">BLOCK_TRANSFER_MODE</a></strong></code>
<div class="block">A constant used to indicate a file is to be transfered as a series
 of blocks.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#CARRIAGE_CONTROL_TEXT_FORMAT">CARRIAGE_CONTROL_TEXT_FORMAT</a></strong></code>
<div class="block">A constant used to indicate a text file contains ASA vertical format
 control characters.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#COMPRESSED_TRANSFER_MODE">COMPRESSED_TRANSFER_MODE</a></strong></code>
<div class="block">A constant used to indicate a file is to be transfered as FTP
 compressed data.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_CONTROL_ENCODING">DEFAULT_CONTROL_ENCODING</a></strong></code>
<div class="block">The default character encoding used for communicating over an
 FTP control connection.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_DATA_PORT">DEFAULT_DATA_PORT</a></strong></code>
<div class="block">The default FTP data port (20).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#DEFAULT_PORT">DEFAULT_PORT</a></strong></code>
<div class="block">The default FTP control port (21).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#EBCDIC_FILE_TYPE">EBCDIC_FILE_TYPE</a></strong></code>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as EBCDIC.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#FILE_STRUCTURE">FILE_STRUCTURE</a></strong></code>
<div class="block">A constant used to indicate a file is to be treated as a continuous
 sequence of bytes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#LOCAL_FILE_TYPE">LOCAL_FILE_TYPE</a></strong></code>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as a local type.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#NON_PRINT_TEXT_FORMAT">NON_PRINT_TEXT_FORMAT</a></strong></code>
<div class="block">A constant used for text files to indicate a non-print text format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#PAGE_STRUCTURE">PAGE_STRUCTURE</a></strong></code>
<div class="block">A constant used to indicate a file is to be treated as a set of
 independent indexed pages.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#RECORD_STRUCTURE">RECORD_STRUCTURE</a></strong></code>
<div class="block">A constant used to indicate a file is to be treated as a sequence
 of records.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#REPLY_CODE_LEN">REPLY_CODE_LEN</a></strong></code>
<div class="block">Length of the FTP reply code (3 alphanumerics)</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#STREAM_TRANSFER_MODE">STREAM_TRANSFER_MODE</a></strong></code>
<div class="block">A constant used to indicate a file is to be transfered as a stream
 of bytes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#strictMultilineParsing">strictMultilineParsing</a></strong></code>
<div class="block">This is used to signal whether a block of multiline responses beginning
 with xxx must be terminated by the same numeric code xxx
 See section 4.2 of RFC 959 for details.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#TELNET_TEXT_FORMAT">TELNET_TEXT_FORMAT</a></strong></code>
<div class="block">A constant used to indicate a text file contains format vertical format
 control characters.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.net.SocketClient">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.commons.net.<a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></h3>
<code><a href="../../../../../org/apache/commons/net/SocketClient.html#_defaultPort_">_defaultPort_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_input_">_input_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_output_">_output_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_serverSocketFactory_">_serverSocketFactory_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_socket_">_socket_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_socketFactory_">_socketFactory_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#_timeout_">_timeout_</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connectTimeout">connectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#NETASCII_EOL">NETASCII_EOL</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#FTP()">FTP</a></strong>()</code>
<div class="block">The default FTP constructor.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#__getReplyNoReport()">__getReplyNoReport</a></strong>()</code>
<div class="block">Get the reply, but don't pass it to command listeners.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#__noop()">__noop</a></strong>()</code>
<div class="block">Send a noop and get the reply without reporting to the command listener.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()">_connectAction_</a></strong>()</code>
<div class="block">Initiates control connections and gets initial reply.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#abor()">abor</a></strong>()</code>
<div class="block">A convenience method to send the FTP ABOR command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#acct(java.lang.String)">acct</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;account)</code>
<div class="block">A convenience method to send the FTP ACCT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#allo(int)">allo</a></strong>(int&nbsp;bytes)</code>
<div class="block">A convenience method to send the FTP ALLO command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#allo(int, int)">allo</a></strong>(int&nbsp;bytes,
        int&nbsp;recordSize)</code>
<div class="block">A convenience method to send the FTP ALLO command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#appe(java.lang.String)">appe</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP APPE command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#cdup()">cdup</a></strong>()</code>
<div class="block">A convenience method to send the FTP CDUP command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#cwd(java.lang.String)">cwd</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;directory)</code>
<div class="block">A convenience method to send the FTP CWD command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#dele(java.lang.String)">dele</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP DELE command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#disconnect()">disconnect</a></strong>()</code>
<div class="block">Closes the control connection to the FTP server and sets to null
 some internal data so that the memory may be reclaimed by the
 garbage collector.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#eprt(java.net.InetAddress, int)">eprt</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
        int&nbsp;port)</code>
<div class="block">A convenience method to send the FTP EPRT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#epsv()">epsv</a></strong>()</code>
<div class="block">A convenience method to send the FTP EPSV command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#feat()">feat</a></strong>()</code>
<div class="block">A convenience method to send the FTP FEAT command to the server, receive the reply,
 and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/commons/net/ProtocolCommandSupport.html" title="class in org.apache.commons.net">ProtocolCommandSupport</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#getCommandSupport()">getCommandSupport</a></strong>()</code>
<div class="block">Provide command support to super-class</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#getControlEncoding()">getControlEncoding</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReply()">getReply</a></strong>()</code>
<div class="block">Fetches a reply from the FTP server and returns the integer reply
 code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyCode()">getReplyCode</a></strong>()</code>
<div class="block">Returns the integer value of the reply code of the last FTP reply.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()">getReplyString</a></strong>()</code>
<div class="block">Returns the entire text of the last FTP server response exactly
 as it was received, including all end of line markers in NETASCII
 format.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()">getReplyStrings</a></strong>()</code>
<div class="block">Returns the lines of text from the last FTP server response as an array
 of strings, one entry per line.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#help()">help</a></strong>()</code>
<div class="block">A convenience method to send the FTP HELP command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#help(java.lang.String)">help</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)</code>
<div class="block">A convenience method to send the FTP HELP command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#isStrictMultilineParsing()">isStrictMultilineParsing</a></strong>()</code>
<div class="block">Return whether strict multiline parsing is enabled, as per RFC 959, section 4.2.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#list()">list</a></strong>()</code>
<div class="block">A convenience method to send the FTP LIST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#list(java.lang.String)">list</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP LIST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mdtm(java.lang.String)">mdtm</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;file)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mfmt(java.lang.String, java.lang.String)">mfmt</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
        <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;timeval)</code>
<div class="block">A convenience method to send the FTP MFMT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mkd(java.lang.String)">mkd</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP MKD command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlsd()">mlsd</a></strong>()</code>
<div class="block">A convenience method to send the FTP MLSD command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlsd(java.lang.String)">mlsd</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>
<div class="block">A convenience method to send the FTP MLSD command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlst()">mlst</a></strong>()</code>
<div class="block">A convenience method to send the FTP MLST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mlst(java.lang.String)">mlst</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)</code>
<div class="block">A convenience method to send the FTP MLST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#mode(int)">mode</a></strong>(int&nbsp;mode)</code>
<div class="block">A convenience method to send the FTP MODE command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#nlst()">nlst</a></strong>()</code>
<div class="block">A convenience method to send the FTP NLST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#nlst(java.lang.String)">nlst</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP NLST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#noop()">noop</a></strong>()</code>
<div class="block">A convenience method to send the FTP NOOP command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#pass(java.lang.String)">pass</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)</code>
<div class="block">A convenience method to send the FTP PASS command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#pasv()">pasv</a></strong>()</code>
<div class="block">A convenience method to send the FTP PASV command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#port(java.net.InetAddress, int)">port</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
        int&nbsp;port)</code>
<div class="block">A convenience method to send the FTP PORT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#pwd()">pwd</a></strong>()</code>
<div class="block">A convenience method to send the FTP PWD command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#quit()">quit</a></strong>()</code>
<div class="block">A convenience method to send the FTP QUIT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#rein()">rein</a></strong>()</code>
<div class="block">A convenience method to send the FTP REIN command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#rest(java.lang.String)">rest</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;marker)</code>
<div class="block">A convenience method to send the FTP REST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#retr(java.lang.String)">retr</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP RETR command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#rmd(java.lang.String)">rmd</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP RMD command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#rnfr(java.lang.String)">rnfr</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP RNFR command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#rnto(java.lang.String)">rnto</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP RNTO command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(org.apache.commons.net.ftp.FTPCmd)">sendCommand</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/FTPCmd.html" title="enum in org.apache.commons.net.ftp">FTPCmd</a>&nbsp;command)</code>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(org.apache.commons.net.ftp.FTPCmd, java.lang.String)">sendCommand</a></strong>(<a href="../../../../../org/apache/commons/net/ftp/FTPCmd.html" title="enum in org.apache.commons.net.ftp">FTPCmd</a>&nbsp;command,
                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;args)</code>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(int)">sendCommand</a></strong>(int&nbsp;command)</code>
<div class="block">Sends an FTP command with no arguments to the server, waits for a
 reply and returns the numerical response code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(int, java.lang.String)">sendCommand</a></strong>(int&nbsp;command,
                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;args)</code>
<div class="block"><strong>Deprecated.</strong>&nbsp;
<div class="block"><i>(3.3) Use <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(org.apache.commons.net.ftp.FTPCmd, java.lang.String)"><code>sendCommand(FTPCmd, String)</code></a> instead</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String)">sendCommand</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)</code>
<div class="block">Sends an FTP command with no arguments to the server, waits for a
 reply and returns the numerical response code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String, java.lang.String)">sendCommand</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
                      <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;args)</code>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#setControlEncoding(java.lang.String)">setControlEncoding</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;encoding)</code>
<div class="block">Sets the character encoding used by the FTP control connection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#setStrictMultilineParsing(boolean)">setStrictMultilineParsing</a></strong>(boolean&nbsp;strictMultilineParsing)</code>
<div class="block">Set strict multiline parsing.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#site(java.lang.String)">site</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parameters)</code>
<div class="block">A convenience method to send the FTP SITE command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#smnt(java.lang.String)">smnt</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dir)</code>
<div class="block">A convenience method to send the FTP SMNT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#stat()">stat</a></strong>()</code>
<div class="block">A convenience method to send the FTP STAT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#stat(java.lang.String)">stat</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP STAT command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#stor(java.lang.String)">stor</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP STOR command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#stou()">stou</a></strong>()</code>
<div class="block">A convenience method to send the FTP STOU command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#stou(java.lang.String)">stou</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)</code>
<div class="block">A convenience method to send the FTP STOU command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#stru(int)">stru</a></strong>(int&nbsp;structure)</code>
<div class="block">A convenience method to send the FTP STRU command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#syst()">syst</a></strong>()</code>
<div class="block">A convenience method to send the FTP SYST command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#type(int)">type</a></strong>(int&nbsp;fileType)</code>
<div class="block">A convenience method to send the FTP TYPE command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#type(int, int)">type</a></strong>(int&nbsp;fileType,
        int&nbsp;formatOrByteSize)</code>
<div class="block">A convenience method to send the FTP TYPE command for text files
 to the server, receive the reply, and return the reply code.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/net/ftp/FTP.html#user(java.lang.String)">user</a></strong>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username)</code>
<div class="block">A convenience method to send the FTP USER command to the server,
 receive the reply, and return the reply code.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.net.SocketClient">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.commons.net.<a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></h3>
<code><a href="../../../../../org/apache/commons/net/SocketClient.html#addProtocolCommandListener(org.apache.commons.net.ProtocolCommandListener)">addProtocolCommandListener</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.net.InetAddress, int, java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#connect(java.lang.String, int, java.net.InetAddress, int)">connect</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#createCommandSupport()">createCommandSupport</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#fireCommandSent(java.lang.String, java.lang.String)">fireCommandSent</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#fireReplyReceived(int, java.lang.String)">fireReplyReceived</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getCharset()">getCharset</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getCharsetName()">getCharsetName</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getConnectTimeout()">getConnectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getDefaultPort()">getDefaultPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getDefaultTimeout()">getDefaultTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getKeepAlive()">getKeepAlive</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getLocalAddress()">getLocalAddress</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getLocalPort()">getLocalPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getProxy()">getProxy</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getReceiveBufferSize()">getReceiveBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getRemoteAddress()">getRemoteAddress</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getRemotePort()">getRemotePort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSendBufferSize()">getSendBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getServerSocketFactory()">getServerSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSoLinger()">getSoLinger</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getSoTimeout()">getSoTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#getTcpNoDelay()">getTcpNoDelay</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#isAvailable()">isAvailable</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#isConnected()">isConnected</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#removeProtocolCommandListener(org.apache.commons.net.ProtocolCommandListener)">removeProtocolCommandListener</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setCharset(java.nio.charset.Charset)">setCharset</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setConnectTimeout(int)">setConnectTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setDefaultPort(int)">setDefaultPort</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setDefaultTimeout(int)">setDefaultTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setKeepAlive(boolean)">setKeepAlive</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setProxy(java.net.Proxy)">setProxy</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setReceiveBufferSize(int)">setReceiveBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSendBufferSize(int)">setSendBufferSize</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setServerSocketFactory(javax.net.ServerSocketFactory)">setServerSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSocketFactory(javax.net.SocketFactory)">setSocketFactory</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSoLinger(boolean, int)">setSoLinger</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setSoTimeout(int)">setSoTimeout</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#setTcpNoDelay(boolean)">setTcpNoDelay</a>, <a href="../../../../../org/apache/commons/net/SocketClient.html#verifyRemote(java.net.Socket)">verifyRemote</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="DEFAULT_DATA_PORT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_DATA_PORT</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.100">DEFAULT_DATA_PORT</a></pre>
<div class="block">The default FTP data port (20).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.DEFAULT_DATA_PORT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_PORT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_PORT</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.102">DEFAULT_PORT</a></pre>
<div class="block">The default FTP control port (21).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.DEFAULT_PORT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ASCII_FILE_TYPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ASCII_FILE_TYPE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.109">ASCII_FILE_TYPE</a></pre>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as ASCII.  This is the default file type.  All constants
 ending in <code>FILE_TYPE</code> are used to indicate file types.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.ASCII_FILE_TYPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="EBCDIC_FILE_TYPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EBCDIC_FILE_TYPE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.117">EBCDIC_FILE_TYPE</a></pre>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as EBCDIC.  Note however that there are several different
 EBCDIC formats.  All constants ending in <code>FILE_TYPE</code>
 are used to indicate file types.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.EBCDIC_FILE_TYPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="BINARY_FILE_TYPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BINARY_FILE_TYPE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.126">BINARY_FILE_TYPE</a></pre>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as a binary image, i.e., no translations should be
 performed.  All constants ending in <code>FILE_TYPE</code> are used to
 indicate file types.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.BINARY_FILE_TYPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LOCAL_FILE_TYPE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOCAL_FILE_TYPE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.133">LOCAL_FILE_TYPE</a></pre>
<div class="block">A constant used to indicate the file(s) being transfered should
 be treated as a local type.  All constants ending in
 <code>FILE_TYPE</code> are used to indicate file types.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.LOCAL_FILE_TYPE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="NON_PRINT_TEXT_FORMAT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>NON_PRINT_TEXT_FORMAT</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.141">NON_PRINT_TEXT_FORMAT</a></pre>
<div class="block">A constant used for text files to indicate a non-print text format.
 This is the default format.
 All constants ending in <code>TEXT_FORMAT</code> are used to indicate
 text formatting for text transfers (both ASCII and EBCDIC).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.NON_PRINT_TEXT_FORMAT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="TELNET_TEXT_FORMAT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TELNET_TEXT_FORMAT</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.149">TELNET_TEXT_FORMAT</a></pre>
<div class="block">A constant used to indicate a text file contains format vertical format
 control characters.
 All constants ending in <code>TEXT_FORMAT</code> are used to indicate
 text formatting for text transfers (both ASCII and EBCDIC).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.TELNET_TEXT_FORMAT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="CARRIAGE_CONTROL_TEXT_FORMAT">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CARRIAGE_CONTROL_TEXT_FORMAT</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.157">CARRIAGE_CONTROL_TEXT_FORMAT</a></pre>
<div class="block">A constant used to indicate a text file contains ASA vertical format
 control characters.
 All constants ending in <code>TEXT_FORMAT</code> are used to indicate
 text formatting for text transfers (both ASCII and EBCDIC).</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.CARRIAGE_CONTROL_TEXT_FORMAT">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="FILE_STRUCTURE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FILE_STRUCTURE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.165">FILE_STRUCTURE</a></pre>
<div class="block">A constant used to indicate a file is to be treated as a continuous
 sequence of bytes.  This is the default structure.  All constants ending
 in <code>_STRUCTURE</code> are used to indicate file structure for
 file transfers.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.FILE_STRUCTURE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="RECORD_STRUCTURE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RECORD_STRUCTURE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.172">RECORD_STRUCTURE</a></pre>
<div class="block">A constant used to indicate a file is to be treated as a sequence
 of records.  All constants ending in <code>_STRUCTURE</code>
 are used to indicate file structure for file transfers.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.RECORD_STRUCTURE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PAGE_STRUCTURE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PAGE_STRUCTURE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.180">PAGE_STRUCTURE</a></pre>
<div class="block">A constant used to indicate a file is to be treated as a set of
 independent indexed pages.  All constants ending in
 <code>_STRUCTURE</code> are used to indicate file structure for file
 transfers.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.PAGE_STRUCTURE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="STREAM_TRANSFER_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STREAM_TRANSFER_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.188">STREAM_TRANSFER_MODE</a></pre>
<div class="block">A constant used to indicate a file is to be transfered as a stream
 of bytes.  This is the default transfer mode.  All constants ending
 in <code>TRANSFER_MODE</code> are used to indicate file transfer
 modes.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.STREAM_TRANSFER_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="BLOCK_TRANSFER_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BLOCK_TRANSFER_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.195">BLOCK_TRANSFER_MODE</a></pre>
<div class="block">A constant used to indicate a file is to be transfered as a series
 of blocks.  All constants ending in <code>TRANSFER_MODE</code> are used
 to indicate file transfer modes.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.BLOCK_TRANSFER_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="COMPRESSED_TRANSFER_MODE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMPRESSED_TRANSFER_MODE</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.202">COMPRESSED_TRANSFER_MODE</a></pre>
<div class="block">A constant used to indicate a file is to be transfered as FTP
 compressed data.  All constants ending in <code>TRANSFER_MODE</code>
 are used to indicate file transfer modes.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.COMPRESSED_TRANSFER_MODE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="DEFAULT_CONTROL_ENCODING">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_CONTROL_ENCODING</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.214">DEFAULT_CONTROL_ENCODING</a></pre>
<div class="block">The default character encoding used for communicating over an
 FTP control connection.  The default encoding is an
 ASCII-compatible encoding.  Some FTP servers expect other
 encodings.  You can change the encoding used by an FTP instance
 with <a href="../../../../../org/apache/commons/net/ftp/FTP.html#setControlEncoding(java.lang.String)"><code>setControlEncoding</code></a>.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.DEFAULT_CONTROL_ENCODING">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="REPLY_CODE_LEN">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REPLY_CODE_LEN</h4>
<pre>public static final&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.217">REPLY_CODE_LEN</a></pre>
<div class="block">Length of the FTP reply code (3 alphanumerics)</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.net.ftp.FTP.REPLY_CODE_LEN">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="_replyCode">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_replyCode</h4>
<pre>protected&nbsp;int <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.221">_replyCode</a></pre>
</li>
</ul>
<a name="_replyLines">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_replyLines</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/ArrayList.html?is-external=true" title="class or interface in java.util">ArrayList</a>&lt;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&gt; <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.222">_replyLines</a></pre>
</li>
</ul>
<a name="_newReplyString">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_newReplyString</h4>
<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.223">_newReplyString</a></pre>
</li>
</ul>
<a name="_replyString">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_replyString</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.224">_replyString</a></pre>
</li>
</ul>
<a name="_controlEncoding">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_controlEncoding</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.225">_controlEncoding</a></pre>
</li>
</ul>
<a name="_commandSupport_">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_commandSupport_</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/commons/net/ProtocolCommandSupport.html" title="class in org.apache.commons.net">ProtocolCommandSupport</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.231">_commandSupport_</a></pre>
<div class="block">A ProtocolCommandSupport object used to manage the registering of
 ProtocolCommandListeners and te firing of ProtocolCommandEvents.</div>
</li>
</ul>
<a name="strictMultilineParsing">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>strictMultilineParsing</h4>
<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.238">strictMultilineParsing</a></pre>
<div class="block">This is used to signal whether a block of multiline responses beginning
 with xxx must be terminated by the same numeric code xxx
 See section 4.2 of RFC 959 for details.</div>
</li>
</ul>
<a name="_controlInput_">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_controlInput_</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/BufferedReader.html?is-external=true" title="class or interface in java.io">BufferedReader</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.247">_controlInput_</a></pre>
<div class="block">Wraps SocketClient._input_ to facilitate the reading of text
 from the FTP control connection.  Do not access the control
 connection via SocketClient._input_.  This member starts
 with a null value, is initialized in <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()"><code>_connectAction_()</code></a>,
 and set to null in <a href="../../../../../org/apache/commons/net/ftp/FTP.html#disconnect()"><code>disconnect()</code></a>.</div>
</li>
</ul>
<a name="_controlOutput_">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>_controlOutput_</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/BufferedWriter.html?is-external=true" title="class or interface in java.io">BufferedWriter</a> <a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.256">_controlOutput_</a></pre>
<div class="block">Wraps SocketClient._output_ to facilitate the writing of text
 to the FTP control connection.  Do not access the control
 connection via SocketClient._output_.  This member starts
 with a null value, is initialized in <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_connectAction_()"><code>_connectAction_()</code></a>,
 and set to null in <a href="../../../../../org/apache/commons/net/ftp/FTP.html#disconnect()"><code>disconnect()</code></a>.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="FTP()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>FTP</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.263">FTP</a>()</pre>
<div class="block">The default FTP constructor.  Sets the default port to
 <code>DEFAULT_PORT</code> and initializes internal data structures
 for saving FTP reply information.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="__getReplyNoReport()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>__getReplyNoReport</h4>
<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.302">__getReplyNoReport</a>()
                           throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Get the reply, but don't pass it to command listeners.
 Used for keep-alive processing only.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="_connectAction_()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_connectAction_</h4>
<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.376">_connectAction_</a>()
                        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Initiates control connections and gets initial reply.
 Initializes <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_"><code>_controlInput_</code></a> and <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_"><code>_controlOutput_</code></a>.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/SocketClient.html#_connectAction_()">_connectAction_</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
</li>
</ul>
<a name="setControlEncoding(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setControlEncoding</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.417">setControlEncoding</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;encoding)</pre>
<div class="block">Sets the character encoding used by the FTP control connection.
 Some FTP servers require that commands be issued in a non-ASCII
 encoding like UTF-8 so that filenames with multi-byte character
 representations (e.g, Big 8) can be specified.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>encoding</code> - The new character encoding for the control connection.</dd></dl>
</li>
</ul>
<a name="getControlEncoding()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getControlEncoding</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.426">getControlEncoding</a>()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>The character encoding used to communicate over the
 control connection.</dd></dl>
</li>
</ul>
<a name="disconnect()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>disconnect</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.441">disconnect</a>()
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Closes the control connection to the FTP server and sets to null
 some internal data so that the memory may be reclaimed by the
 garbage collector.  The reply text and code information from the
 last command is voided so that the memory it used may be reclaimed.
 Also sets <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlInput_"><code>_controlInput_</code></a> and <a href="../../../../../org/apache/commons/net/ftp/FTP.html#_controlOutput_"><code>_controlOutput_</code></a> to null.
 <p></div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/SocketClient.html#disconnect()">disconnect</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an error occurs while disconnecting.</dd></dl>
</li>
</ul>
<a name="sendCommand(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendCommand</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.471">sendCommand</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command,
              <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;args)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.  After invocation, for more detailed
 information, the actual reply text can be accessed by calling
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The text representation of the  FTP command to send.</dd><dd><code>args</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the FTP reply code returned by the server
         in response to the command.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="__noop()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>__noop</h4>
<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.527">__noop</a>()
               throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Send a noop and get the reply without reporting to the command listener.
 Intended for use with keep-alive.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="sendCommand(int, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendCommand</h4>
<pre><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.556">sendCommand</a>(int&nbsp;command,
                         <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;args)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>(3.3) Use <a href="../../../../../org/apache/commons/net/ftp/FTP.html#sendCommand(org.apache.commons.net.ftp.FTPCmd, java.lang.String)"><code>sendCommand(FTPCmd, String)</code></a> instead</i></div>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.  After invocation, for more detailed
 information, the actual reply text can be accessed by calling
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The FTPCommand constant corresponding to the FTP command
                 to send.</dd><dd><code>args</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the FTP reply code returned by the server
         in response to the command.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="sendCommand(org.apache.commons.net.ftp.FTPCmd)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendCommand</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.581">sendCommand</a>(<a href="../../../../../org/apache/commons/net/ftp/FTPCmd.html" title="enum in org.apache.commons.net.ftp">FTPCmd</a>&nbsp;command)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.  After invocation, for more detailed
 information, the actual reply text can be accessed by calling
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The FTPCmd enum corresponding to the FTP command
                 to send.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the FTP reply code returned by the server
         in response to the command.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="sendCommand(org.apache.commons.net.ftp.FTPCmd, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendCommand</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.607">sendCommand</a>(<a href="../../../../../org/apache/commons/net/ftp/FTPCmd.html" title="enum in org.apache.commons.net.ftp">FTPCmd</a>&nbsp;command,
              <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;args)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends an FTP command to the server, waits for a reply and returns the
 numerical response code.  After invocation, for more detailed
 information, the actual reply text can be accessed by calling
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The FTPCmd enum corresponding to the FTP command
                 to send.</dd><dd><code>args</code> - The arguments to the FTP command.  If this parameter is
             set to null, then the command is sent with no argument.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the FTP reply code returned by the server
         in response to the command.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="sendCommand(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendCommand</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.629">sendCommand</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends an FTP command with no arguments to the server, waits for a
 reply and returns the numerical response code.  After invocation, for
 more detailed information, the actual reply text can be accessed by
 calling <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The text representation of the  FTP command to send.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the FTP reply code returned by the server
         in response to the command.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="sendCommand(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sendCommand</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.654">sendCommand</a>(int&nbsp;command)
                throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sends an FTP command with no arguments to the server, waits for a
 reply and returns the numerical response code.  After invocation, for
 more detailed information, the actual reply text can be accessed by
 calling <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The FTPCommand constant corresponding to the FTP command
                 to send.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The integer value of the FTP reply code returned by the server
         in response to the command.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="getReplyCode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReplyCode</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.668">getReplyCode</a>()</pre>
<div class="block">Returns the integer value of the reply code of the last FTP reply.
 You will usually only use this method after you connect to the
 FTP server to check that the connection was successful since
 <code> connect </code> is of type void.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The integer value of the reply code of the last FTP reply.</dd></dl>
</li>
</ul>
<a name="getReply()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReply</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.690">getReply</a>()
             throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Fetches a reply from the FTP server and returns the integer reply
 code.  After calling this method, the actual reply text can be accessed
 from either  calling <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyString()"><code>getReplyString </code></a> or
 <a href="../../../../../org/apache/commons/net/ftp/FTP.html#getReplyStrings()"><code>getReplyStrings </code></a>.  Only use this
 method if you are implementing your own FTP client or if you need to
 fetch a secondary response from the FTP server.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The integer value of the reply code of the fetched FTP reply.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while receiving the
                         server reply.</dd></dl>
</li>
</ul>
<a name="getReplyStrings()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReplyStrings</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.704">getReplyStrings</a>()</pre>
<div class="block">Returns the lines of text from the last FTP server response as an array
 of strings, one entry per line.  The end of line markers of each are
 stripped from each line.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The lines of text from the last FTP response as an array.</dd></dl>
</li>
</ul>
<a name="getReplyString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReplyString</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.716">getReplyString</a>()</pre>
<div class="block">Returns the entire text of the last FTP server response exactly
 as it was received, including all end of line markers in NETASCII
 format.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The entire text from the last FTP response as a String.</dd></dl>
</li>
</ul>
<a name="user(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>user</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.751">user</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;username)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP USER command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>username</code> - The username to login under.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="pass(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pass</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.769">pass</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;password)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP PASS command to the server,
 receive the reply, and return the reply code.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>password</code> - The plain text password of the username being logged into.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="acct(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>acct</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.788">acct</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;account)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP ACCT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>account</code> - The account name to access.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="abor()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>abor</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.807">abor</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP ABOR command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="cwd(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cwd</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.826">cwd</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;directory)
        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP CWD command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>directory</code> - The new working directory.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="cdup()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cdup</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.844">cdup</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP CDUP command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="quit()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quit</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.862">quit</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP QUIT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="rein()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rein</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.880">rein</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP REIN command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="smnt(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>smnt</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.899">smnt</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;dir)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP SMNT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>dir</code> - The directory name.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="port(java.net.InetAddress, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>port</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.919">port</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
       int&nbsp;port)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP PORT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>host</code> - The host owning the port.</dd><dd><code>port</code> - The new port.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="eprt(java.net.InetAddress, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eprt</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.961">eprt</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;host,
       int&nbsp;port)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP EPRT command to the server,
 receive the reply, and return the reply code.

 Examples:
 <code>
 <ul>
 <li>EPRT |1|132.235.1.2|6275|</li>
 <li>EPRT |2|1080::8:800:200C:417A|5282|</li>
 </ul>
 </code>
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>host</code> - The host owning the port.</dd><dd><code>port</code> - The new port.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">See Also:</span></dt><dd>"http://www.faqs.org/rfcs/rfc2428.html"</dd></dl>
</li>
</ul>
<a name="pasv()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pasv</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1005">pasv</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP PASV command to the server,
 receive the reply, and return the reply code.  Remember, it's up
 to you to interpret the reply string containing the host/port
 information.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="epsv()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>epsv</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1026">epsv</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP EPSV command to the server,
 receive the reply, and return the reply code.  Remember, it's up
 to you to interpret the reply string containing the host/port
 information.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="type(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>type</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1048">type</a>(int&nbsp;fileType,
       int&nbsp;formatOrByteSize)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP TYPE command for text files
 to the server, receive the reply, and return the reply code.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileType</code> - The type of the file (one of the <code>FILE_TYPE</code>
              constants).</dd><dd><code>formatOrByteSize</code> - The format of the file (one of the
              <code>_FORMAT</code> constants.  In the case of
              <code>LOCAL_FILE_TYPE</code>, the byte size.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="type(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>type</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1079">type</a>(int&nbsp;fileType)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP TYPE command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fileType</code> - The type of the file (one of the <code>FILE_TYPE</code>
              constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="stru(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stru</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1100">stru</a>(int&nbsp;structure)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP STRU command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>structure</code> - The structure of the file (one of the
         <code>_STRUCTURE</code> constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="mode(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mode</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1121">mode</a>(int&nbsp;mode)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MODE command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>mode</code> - The transfer mode to use (one of the
         <code>TRANSFER_MODE</code> constants).</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="retr(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>retr</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1144">retr</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP RETR command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the file to retrieve.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="stor(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stor</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1167">stor</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP STOR command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to use for the file when stored at
                  the remote end of the transfer.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="stou()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stou</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1188">stou</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP STOU command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="stou(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stou</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1211">stou</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP STOU command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The base pathname to use for the file when stored at
                  the remote end of the transfer.  Some FTP servers
                  require this.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="appe(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appe</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1234">appe</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP APPE command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to use for the file when stored at
                  the remote end of the transfer.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="allo(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allo</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1253">allo</a>(int&nbsp;bytes)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP ALLO command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - The number of bytes to allocate.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="feat()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>feat</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1266">feat</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP FEAT command to the server, receive the reply,
 and return the reply code.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received by the server</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd></dl>
</li>
</ul>
<a name="allo(int, int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allo</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1286">allo</a>(int&nbsp;bytes,
       int&nbsp;recordSize)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP ALLO command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>bytes</code> - The number of bytes to allocate.</dd><dd><code>recordSize</code> - The size of a record.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="rest(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rest</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1306">rest</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;marker)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP REST command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>marker</code> - The marker at which to restart a transfer.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="mdtm(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mdtm</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1315">mdtm</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;file)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="mfmt(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mfmt</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1338">mfmt</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname,
       <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;timeval)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MFMT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname for which mtime is to be changed</dd><dd><code>timeval</code> - Timestamp in <code>YYYYMMDDhhmmss</code> format</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://tools.ietf.org/html/draft-somers-ftp-mfxx-04">http://tools.ietf.org/html/draft-somers-ftp-mfxx-04</a></dd></dl>
</li>
</ul>
<a name="rnfr(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rnfr</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1358">rnfr</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP RNFR command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to rename from.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="rnto(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rnto</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1377">rnto</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP RNTO command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to rename to</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="dele(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dele</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1396">dele</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP DELE command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to delete.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="rmd(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rmd</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1415">rmd</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP RMD command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the directory to remove.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="mkd(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mkd</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1434">mkd</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MKD command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname of the new directory to create.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="pwd()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pwd</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1452">pwd</a>()
        throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP PWD command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="list()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>list</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1473">list</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP LIST command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="list(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>list</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1496">list</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP LIST command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to list,
 may be <code>null</code> in which case the command is sent with no parameters</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="mlsd()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlsd</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1518">mlsd</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MLSD command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlsd(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlsd</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1542">mlsd</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MLSD command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - the path to report on</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server,
 may be <code>null</code> in which case the command is sent with no parameters</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlst()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlst</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1564">mlst</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MLST command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="mlst(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mlst</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1588">mlst</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;path)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP MLST command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>path</code> - the path to report on</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server,
 may be <code>null</code> in which case the command is sent with no parameters</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.0</dd></dl>
</li>
</ul>
<a name="nlst()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nlst</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1609">nlst</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP NLST command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="nlst(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nlst</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1632">nlst</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP NLST command to the server,
 receive the reply, and return the reply code.  Remember, it is up
 to you to manage the data connection.  If you don't need this low
 level of access, use <a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><code>FTPClient</code></a>
 , which will handle all low level details for you.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - The pathname to list,
 may be <code>null</code> in which case the command is sent with no parameters</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="site(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>site</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1651">site</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;parameters)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP SITE command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>parameters</code> - The site parameters to send.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="syst()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>syst</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1669">syst</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP SYST command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="stat()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stat</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1687">stat</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP STAT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="stat(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stat</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1706">stat</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pathname)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP STAT command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pathname</code> - A pathname to list.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="help()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>help</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1724">help</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP HELP command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="help(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>help</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1743">help</a>(<a href="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;command)
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP HELP command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>command</code> - The command name on which to request help.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="noop()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>noop</h4>
<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1761">noop</a>()
         throws <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">A convenience method to send the FTP NOOP command to the server,
 receive the reply, and return the reply code.
 <p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The reply code received from the server.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/net/ftp/FTPConnectionClosedException.html" title="class in org.apache.commons.net.ftp">FTPConnectionClosedException</a></code> - If the FTP server prematurely closes the connection as a result
      of the client being idle or some other reason causing the server
      to send FTP reply code 421.  This exception may be caught either
      as an IOException or independently as itself.</dd>
<dd><code><a href="http://download.oracle.com/javase/1.5.0/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If an I/O error occurs while either sending the
      command or receiving the server reply.</dd></dl>
</li>
</ul>
<a name="isStrictMultilineParsing()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isStrictMultilineParsing</h4>
<pre>public&nbsp;boolean&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1771">isStrictMultilineParsing</a>()</pre>
<div class="block">Return whether strict multiline parsing is enabled, as per RFC 959, section 4.2.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>True if strict, false if lenient</dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="setStrictMultilineParsing(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStrictMultilineParsing</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1780">setStrictMultilineParsing</a>(boolean&nbsp;strictMultilineParsing)</pre>
<div class="block">Set strict multiline parsing.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>strictMultilineParsing</code> - </dd><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
<a name="getCommandSupport()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getCommandSupport</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/commons/net/ProtocolCommandSupport.html" title="class in org.apache.commons.net">ProtocolCommandSupport</a>&nbsp;<a href="../../../../../src-html/org/apache/commons/net/ftp/FTP.html#line.1788">getCommandSupport</a>()</pre>
<div class="block">Provide command support to super-class</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/net/SocketClient.html#getCommandSupport()">getCommandSupport</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/commons/net/SocketClient.html" title="class in org.apache.commons.net">SocketClient</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the CommandSupport instance, may be <code>null</code></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/FTP.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/net/ftp/Configurable.html" title="interface in org.apache.commons.net.ftp"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/net/ftp/FTPClient.html" title="class in org.apache.commons.net.ftp"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/net/ftp/FTP.html" target="_top">Frames</a></li>
<li><a href="FTP.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2001-2013 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p>
</body>
</html>
